package com.java_foundation.thread_demo.test_5;

import java.util.concurrent.Callable;

/**
 * @program: java_foundation
 * @description: 实现Callable接口, FutureTask类对象时传入当前类对象进行线程的创建
 * @author: xiongbangwen <Email>xiongbangwen@163.com</Email>
 * @create: 2020-06-21 15:18
 **/
public class FutureTaskDemo implements Callable<String> {
    @Override
    public String call() throws Exception {
        String result = "实现Callable接口, FutureTask类对象时传入当前类对象进行线程的创建";
        System.out.println(result);
        return result;
    }
}
